Skip to content

fix(ios-stickers): inherit DEVELOPMENT_TEAM from main app target#303

Open
safaiyeh wants to merge 1 commit intoexpo:mainfrom
safaiyeh:fix/stickers-development-team
Open

fix(ios-stickers): inherit DEVELOPMENT_TEAM from main app target#303
safaiyeh wants to merge 1 commit intoexpo:mainfrom
safaiyeh:fix/stickers-development-team

Conversation

@safaiyeh
Copy link

Summary

The sticker pack extension target is created without DEVELOPMENT_TEAM, which means developers have to manually select the development team in Xcode after every npx expo prebuild. This is easy to forget and causes confusing code signing errors.

This PR reads DEVELOPMENT_TEAM from the main app target's build configurations and applies it to the sticker extension target — both in the build settings (XCBuildConfiguration) and in the project-level TargetAttributes. This matches the pattern used by:

  • expo-share-intent — reads main target's DEVELOPMENT_TEAM and applies to share extension
  • @expo/config-plugins DevelopmentTeam module — applies team to all targets

Changes

  • Added getMainTargetDevelopmentTeam() helper that reads DEVELOPMENT_TEAM from the main app target's build configurations (filtering out Extension/Widget/Sticker targets)
  • Set DEVELOPMENT_TEAM in commonBuildSettings when available
  • Set DevelopmentTeam in TargetAttributes when available
  • Gracefully no-ops when no team is found (preserves current behavior)

Test plan

  • Existing tests pass (yarn test)
  • Package builds successfully (yarn build)
  • Verify with a real project: after npx expo prebuild --clean, the sticker extension target should have the correct development team without manual Xcode intervention

🤖 Generated with Claude Code

The sticker pack extension target was created without setting
DEVELOPMENT_TEAM, requiring developers to manually select the
team in Xcode after every prebuild. This follows the same pattern
used by expo-share-intent and Expo's own DevelopmentTeam utilities:
read the team from the main app target's build configurations and
apply it to the extension's build settings and TargetAttributes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant